package com.xian.yoga.entity;

import java.io.Serializable;

/**
 * adv
 * @author 
 */
public class Adv implements Serializable {
    private Integer advId;

    private Integer studioId;

    private String advImg;

    private String advTitle;

    private String advUrl;

    private static final long serialVersionUID = 1L;

    public Integer getAdvId() {
        return advId;
    }

    public void setAdvId(Integer advId) {
        this.advId = advId;
    }

    public Integer getStudioId() {
        return studioId;
    }

    public void setStudioId(Integer studioId) {
        this.studioId = studioId;
    }

    public String getAdvImg() {
        return advImg;
    }

    public void setAdvImg(String advImg) {
        this.advImg = advImg;
    }

    public String getAdvTitle() {
        return advTitle;
    }

    public void setAdvTitle(String advTitle) {
        this.advTitle = advTitle;
    }

    public String getAdvUrl() {
        return advUrl;
    }

    public void setAdvUrl(String advUrl) {
        this.advUrl = advUrl;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Adv other = (Adv) that;
        return (this.getAdvId() == null ? other.getAdvId() == null : this.getAdvId().equals(other.getAdvId()))
            && (this.getStudioId() == null ? other.getStudioId() == null : this.getStudioId().equals(other.getStudioId()))
            && (this.getAdvImg() == null ? other.getAdvImg() == null : this.getAdvImg().equals(other.getAdvImg()))
            && (this.getAdvTitle() == null ? other.getAdvTitle() == null : this.getAdvTitle().equals(other.getAdvTitle()))
            && (this.getAdvUrl() == null ? other.getAdvUrl() == null : this.getAdvUrl().equals(other.getAdvUrl()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAdvId() == null) ? 0 : getAdvId().hashCode());
        result = prime * result + ((getStudioId() == null) ? 0 : getStudioId().hashCode());
        result = prime * result + ((getAdvImg() == null) ? 0 : getAdvImg().hashCode());
        result = prime * result + ((getAdvTitle() == null) ? 0 : getAdvTitle().hashCode());
        result = prime * result + ((getAdvUrl() == null) ? 0 : getAdvUrl().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", advId=").append(advId);
        sb.append(", studioId=").append(studioId);
        sb.append(", advImg=").append(advImg);
        sb.append(", advTitle=").append(advTitle);
        sb.append(", advUrl=").append(advUrl);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}